/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: TableKeyWord
 * Author:   Administrator
 * Date:     2019/6/21 16:38
 * Description: 流程数据默认的提供的字段
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.sunlord.utils;

/**
 * 〈一句话功能简述〉<br> 
 * 〈流程数据默认的提供的字段〉
 *
 * @author Administrator
 * @create 2019/6/21
 * @since 1.0.0
 */
public class TableKeyWord {
    public static final String [] MASTER_TABLE_DEFAULT_COLUS = {"OBJECTID","NAME","CREATEDBY","CREATEDBYPARENTID","OWNERID","OWNERPARENTID","CREATEDTIME","MODIFIEDBY","MODIFIEDTIME","RUNNINGINSTANCEID"};
    public static final String [] SON_TABLE_DEFAULT_COLUS = {"OBJECTID","PARENTINDEX","PARENTOBJECTID","PARENTPROPERTYNAME"};


    public static boolean isTableDefaultKeyWord(String keyword){
        if(keyword == null) {
            return false;
        }
        for (int i = 0; i < MASTER_TABLE_DEFAULT_COLUS.length; i++) {
            if (MASTER_TABLE_DEFAULT_COLUS[i].equals(keyword.toUpperCase())) {
                return true;
            }
        }
        return  false;
    }
    public static boolean isChildeDefaultKeyWord(String keyword){
        if(keyword == null) {
            return false;
        }
        for (int i = 0; i < SON_TABLE_DEFAULT_COLUS.length; i++) {
            if (SON_TABLE_DEFAULT_COLUS[i].equals(keyword.toUpperCase())) {
                return true;
            }
        }
        return  false;
    }

}